
var interface = 'http://192.168.0.187:8044/';

function getdata(APIname,dataArr) {
    var getData = '';
    $.ajax({
        url: interface + APIname,
        type: "post",
        dataType: "json",
        data: dataArr,
        async: false,
        success: function (getJSON) {
            getData = getJSON;
        }
    });
    return getData;
}